package com.ss.android.wenda.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.design.a;
import com.ss.android.article.common.model.ShareData;
import com.ss.android.article.common.share.interf.n;
import java.util.List;

public class Question implements Parcelable, n {
    public static final int AUDITING = 1;
    public static final Parcelable.Creator CREATOR;
    public static final int DENY = 3;
    public static final int NORMAL = 0;
    public static final int RECOMMEND_MODIFY = 2;
    public AnswerFoldReason mAnswerFoldReason;
    public boolean mCanDelete;
    public boolean mCanEdit;
    public List mConcernTags;
    public long mCreateTime;
    public int mFollowCount;
    public boolean mIsFollow;
    public int mNiceAnswerCount;
    public int mNormalAnswerCount;
    public String mQid;
    public QuestionDesc mQuestionDesc;
    public ShareData mShareData;
    public boolean mShowDelete;
    public boolean mShowEdit;
    public int mStatus;
    public String mTitle;
    public User mUser;

    static {
       CREATOR = new h();
    }

    public Question() {

    }

    protected Question(Parcel arg3) {

        this.mQid = arg3.readString();
        this.mTitle = arg3.readString();
        this.mCreateTime = arg3.readLong();
        this.mUser = arg3.readParcelable(User.class.getClassLoader());
        this.mQuestionDesc = arg3.readParcelable(QuestionDesc.class.getClassLoader());
        this.mNiceAnswerCount = arg3.readInt();
        this.mNormalAnswerCount = arg3.readInt();
        this.mShareData = arg3.readParcelable(ShareData.class.getClassLoader());
        this.mAnswerFoldReason = arg3.readParcelable(AnswerFoldReason.class.getClassLoader());
        this.mStatus = arg3.readInt();
        this.mConcernTags = arg3.createTypedArrayList(ConcernTag.CREATOR);
    }

    public int describeContents() {
        return 0;
    }

    public String getContent() {
        String v0 = this.mShareData == null ? "" : this.mShareData.mContent;
        return v0;
    }

    public String getId() {
        String v0 = this.mShareData == null ? "" : this.mQid;
        return v0;
    }

    public String getImageUrl() {
        String v0 = this.mShareData == null ? "" : this.mShareData.mImageUrl;
        return v0;
    }

    public String getShareSource() {
        String v0 = this.mShareData == null ? "" : this.mShareData.mShareSource;
        return v0;
    }

    public String getShareUrl() {
        String v0 = this.mShareData == null ? "" : this.mShareData.mShareUrl;
        return v0;
    }

    public String getTitle() {
        String v0 = this.mShareData == null ? "" : this.mShareData.mTitle;
        return v0;
    }

    public boolean isValid() {
        boolean v0 = (a.isTextEmpty(this.mQid)) || (a.isTextEmpty(this.mTitle)) ? false : true;
        return v0;
    }

    public void writeToParcel(Parcel arg3, int arg4) {
        arg3.writeString(this.mQid);
        arg3.writeString(this.mTitle);
        arg3.writeLong(this.mCreateTime);
        arg3.writeParcelable(this.mUser, arg4);
        arg3.writeParcelable(this.mQuestionDesc, arg4);
        arg3.writeInt(this.mNiceAnswerCount);
        arg3.writeInt(this.mNormalAnswerCount);
        arg3.writeParcelable(this.mShareData, arg4);
        arg3.writeParcelable(this.mAnswerFoldReason, arg4);
        arg3.writeInt(this.mStatus);
        arg3.writeTypedList(this.mConcernTags);
    }
}

